package com.example.administrator.musicplayer;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;

import java.net.URI;

public class RegisterActivity extends Activity {
    private String username;
    private String password;
    private EditText ed_user;
    private EditText ed_pass;
    private URI photo;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        Button btn = (Button)findViewById(R.id.btn_register);
        ImageButton btn_img = (ImageButton)findViewById(R.id.btn_img);
        btn_img.setOnClickListener(
                new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {

                    }
                }
        );

        btn.setOnClickListener(
                new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
//                        ed_user = (EditText)findViewById(R.id.ed_user);
//                        ed_pass = (EditText)findViewById(R.id.ed_pass);
//                        username = ed_user.getText().toString();
//                        password = ed_pass.getText().toString();
//
//                        Intent intent = new Intent(RegisterActivity.this,welcomeActivity.class);
//                        Bundle bundle = new Bundle();
//                        User user = new User(username,password);
//                        bundle.putSerializable("user",user);
////                        bundle.putSerializable("pass",password);
//                        intent.putExtras(bundle);
//                        startActivity(intent);
                        Intent intent = new Intent(Intent.ACTION_VIEW);
                        String path = "/sdcard/Music";
                        startActivity(intent);
                    }
                }
        );
    }

}
